import req from '../utils/axiosUtil'
import {API_HOST} from '../settings'


//查询订单
export async function getUserOrderList(params) {
    return req.post(`${API_HOST}/app/order/getUserOrderList`, {
      ...params
    })
  }
//获取订单详情
export async function getUserOrderDetails(params) {
  return req.post(`${API_HOST}/app/order/getUserOrderDetails`, {
    ...params
  })
}
//取消订单
export async function cancelOrder(params) {
  return req.post(`${API_HOST}/app/order/cancelUserOrder`, {
    ...params
  })
}
//删除订单
export async function deleteOrder(params) {
  return req.post(`${API_HOST}/app/order/deleteUserOrder`, {
    ...params
  })
}
//保存评价
export async function saveOrderEvaluationApp(params) {
  return req.post(`${API_HOST}/app/order/saveOrderEvaluationApp`, {
    ...params
  })
}
//查询评价
export async function getOrderEvaluationByOrderId(params) {
  return req.post(`${API_HOST}/app/order/getOrderEvaluationByOrderId`, {
    ...params
  })
}